How the Brain Learns Mathematics